
<div class="thongbaoadmin">
<?php 
$setting = $this->Home_model->get_one('setting');
echo $setting->tbadmin;
?>
</div>
<div class="offerbanner clearfix">
<?php if(!empty($net)):

?>
    <div id="tabContaier" class="clearfix">
        <ul class="clearfix">
        <?php foreach ($net as $net1){
            $class='';
            if($this->session->userdata('netactive')==$net1->id){
                $class= 'active';
            }            
           echo '
               <li>
                <a class="'.$class.'" href="'.base_url().'offer/dtoffer/'.$net1->id.'" title="tab'.$net1->id.'">'.$net1->title.'</a>
               </li>'; 
        }?>             
        </ul>
    </div>
    <div class="tabdetail clearfix">
        <div class="obanner clearfix"> 
        <?php         
            if(!empty($offer)):            
                foreach($offer as $offer):
            ?> 
            
            
               <div class="box_offer clearfix">   
                    <a href="<?php echo base_url(),'offer/detail/',$offer->id;?>" target="_blank">
                        <img src="<?php if($offer->img)echo $offer->img;else echo base_url().'upload/images/defalt_offer/defalt_offer.png';?>"/>
                    </a>
                    <div class="detail_offer left">
                        <span class="title_offer block">
                            <a href="<?php echo base_url(),'offer/detail/',$offer->id;?>" target="_blank">
                            <?php echo $offer->title;?>
                            </a>
                        </span>
                        <span class="point_offer block"><?php echo $offer->point_rate;?> Points</span>
                        <span class="intro_offer block"><?php echo $offer->description;?></span>
                    </div>
               </div>
              
            
            <?php 
                endforeach;
            else:
                echo '<span style="font-weight:bold;color:#fff;">No offer!!</span>';
            endif;
            ?>
        
       </div>  
        <ul class="phantrang clearfix block left"  style="margin: 5px;">
                <?php echo $this->pagination->create_links();?>
            </ul>    
    </div>
<?php
else: echo 'No net!!';
endif;
?>    
    
</div>



<script type="text/javascript">
$(document).ready(function(){
 
});
</script>

